import Vue from 'vue'
import Vuex from 'vuex'
import { reject } from 'q'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {},
    mutations: {},
    actions: {
        // login({ commit }, info) {
        //     const { username, passwode } = info
        //     return new Promise((resolve, reject) => {
        //         login({ userName: username.trim(), passwode: passwode }).then(res => {
        //             const { token } = res
        //             commit('set-token', token)
        //             setToken(token)
        //             resolve()
        //         })
        //     })
        // }
    },
    modules: {}
})
